package com.effectivsocial.repository;

import java.util.List;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.effectivsocial.domain.Role;
import com.effectivsocial.domain.User;


public interface UserRepository extends JpaRepository<User, String>{
	
	List<User> findByDeleted(Pageable request, boolean deleted);
	User findByEmail(String email);
	List<User> findByRoles(Role role);
	
	
}
